package com.legal.app.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.common.annotation.Excel;
import com.legal.common.core.domain.BaseEntity;

/**
 * 轮播图对象 z_banner
 * 
 * @author Ale
 * @date 2025-05-29
 */
@TableName("z_banner")
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 轮播图ID */
    private Long id;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 链接类型(0=无链接,1=律师,2=外部链接) */
    @Excel(name = "链接类型(0=无链接,1=律师,2=外部链接)")
    private Long linkType;

    /** 内部链接ID */
    @Excel(name = "内部链接ID")
    private Long linkId;

    /** 外部链接地址 */
    @Excel(name = "外部链接地址")
    private String externalUrl;

    /** 展示顺序 */
    @Excel(name = "展示顺序")
    private Long sortOrder;

    /** 状态(0=禁用,1=启用) */
    @Excel(name = "状态(0=禁用,1=启用)")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setLinkType(Long linkType) 
    {
        this.linkType = linkType;
    }

    public Long getLinkType() 
    {
        return linkType;
    }

    public void setLinkId(Long linkId) 
    {
        this.linkId = linkId;
    }

    public Long getLinkId() 
    {
        return linkId;
    }

    public void setExternalUrl(String externalUrl) 
    {
        this.externalUrl = externalUrl;
    }

    public String getExternalUrl() 
    {
        return externalUrl;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("imageUrl", getImageUrl())
            .append("linkType", getLinkType())
            .append("linkId", getLinkId())
            .append("externalUrl", getExternalUrl())
            .append("sortOrder", getSortOrder())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
